package com.ruoyi.basedata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseDO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 协议对象 t_protocol_table
 *
 * @author ruoyi
 * @date 2023-10-08
 */
@Data
@TableName("t_protocol_table")
public class Protocol extends BaseDO
{
    private static final long serialVersionUID = 1L;

    @TableId
    /** id */
    private Integer id;

    /** 协议id */
    @Excel(name = "协议id")
    @TableField("protocol_id")
    private String protocolId;

    /** 协议名称 */
    @Excel(name = "协议名称")
    @TableField("protocol_name")
    private String protocolName;

    /** 厂家编号 */
    @Excel(name = "厂家", dictType = "terminal_supplier")
    @JsonProperty("supplierId")
    @TableField("supplier_id")
    private String supplierId;

    /** 方法名 */
    @Excel(name = "方法名")
    @TableField("method_name")
    private String methodName;

    /** 类名 */
    @Excel(name = "类名")
    @TableField("class_name")
    private String className;

    /** 设备类型1-大表、2-小表 */
    @Excel(name = "设备类型", dictType = "terminal_meter_type")
    @JsonProperty("terminalType")
    @TableField("terminal_type")
    private Integer terminalType;

    /** 备注 */
    @Excel(name = "备注")
    @JsonProperty("remark")
    @TableField("remark")
    private String remark;


}
